﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/Scripts/DialogForm")
    @Styles.Render("~/Content/themes/base/css")

     @*<script src="@Url.Content("~/Scripts/DialogForm.js")" type="text/javascript"></script>*@   

    @*@Scripts.Render("~/bundles/jquerylogin")*@
    @*    JB: Lyckades inte få importen av scriptet att fungera. Jag tror inte den exekverar när den importeras från js filen*@

    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("your logo here", "Index", "Home")</p>
                </div>
                <div class="float-right">
                @*                <section id="login">
                    @Html.Partial("_LoginPartial")
                </section>*@
                @*JB Windows authentication*@
                    <section id="login">
                    Välkommen, <span class="username">@User.Identity.Name</span>!
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.MenuLink(@User.Identity.Name,"Administration","Administration/Index","Admin")</li>
                            @*<li>@Html.ActionLink("Administration", "Index", "Administration")</li> *@
                            @*<li>@Html.ActionLink("Mina aktiviteter", "ListActivities", "UseCase01")</li> *@                          
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
            <p class="ErrorMessage">
                @if (TempData["ErrorMessage"] != null)
                {
                    @TempData["ErrorMessage"]
                }
            </p>
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - LAVAA</p>
                </div>
            </div>
        </footer>
        @RenderSection("scripts", required: false)

    </body>
</html>
